package cinema;

import cinema.model.*;
import cinema.service.UserService;
import cinema.util.InputUtil;

public class Main {
    public static void main(String[] args) {
        UserService.initAdmin(); // 预设admin
        while (true) {
            System.out.println("\n===万东影院系统===");
            String username = InputUtil.readLine("用户名: ");
            String password = InputUtil.readLine("密码: ");
            User user = UserService.login(username, password);
            if (user != null) {
                user.showMenu();
            } else {
                System.out.println("登录失败！");
            }
        }
    }
}